﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MiWebSite_Core;
using WLMCoreLibrary;

namespace MWS_Main
{
    public partial class xml : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.ContentType = "text/xml";
            WebSiteMainConfiguration config = WebSiteMainConfiguration.GetConfig();
            dbConnector ConexionDB= new dbConnector(config.Connections[0].value);
            Categoria navegacion = new Categoria(1,"",ref ConexionDB);           
            MiWebSitePage pagina = new MiWebSitePage(ref ConexionDB);
            pagina.Title = "Titulo de Prueba";
            pagina.Navigation = navegacion;
       
            //pagina.SideNavigation = navegacion;
            
            string x = WLMFunctions.SerializeObject(pagina, true);
            ConexionDB.CloseConnection();
            Response.Write(x);
        }
    }
}